package com.yuexi.domain.syscode;

import com.yuexi.domain.repository.SysCodeRepository;
import com.yuexi.domain.syscode.bo.SysCodeQueryBO;
import com.yuexi.domain.syscode.bo.SysCodeResultBO;
import com.zenx.domain.Entity;

import javax.annotation.Resource;
import java.util.List;
import java.util.Set;

/**
 * @author jie
 * @date 2021/12/14 -19:09
 */
@Entity
public class SysCodeDomain {
    @Resource
    private SysCodeRepository sysCodeRepository;

    public List<SysCodeResultBO> query(SysCodeQueryBO sysCodeQueryBO) {
        return sysCodeRepository.query(sysCodeQueryBO);
    }

    public SysCodeResultBO getOne(SysCodeQueryBO sysCodeQueryBO) {
        return sysCodeRepository.getOne(sysCodeQueryBO);
    }

    public List<SysCodeResultBO> list(String code) {
        return sysCodeRepository.list(code);
    }

    public List<SysCodeResultBO> batchQuery(Set<String> codeIds) {
        return sysCodeRepository.batchQuery(codeIds);
    }
}
